package com.dunshan.prcexp.testjava;

import com.dunshan.prcexp.config.Config;
import com.dunshan.prcexp.config.Init;
import com.dunshan.prcexp.pojo.HttpEntity;
import com.dunshan.prcexp.request.Request;
import com.dunshan.prcexp.response.Response;
import org.testng.Assert;
import org.testng.annotations.Test;

/**
 * @author liwen406
 * @program: dunshan-pef
 * @description:
 * @date 2022-08-24 20:25:08
 */
public class runNumberTest {

    @Test(description = "HTTP示例-POST请求，返回JSON", dataProvider = "getStarted01", dataProviderClass = DataNumberProvider.class, priority = 1)
    public void getStarted01(HttpEntity httpEntityInfo) {

        Response response = Request.create(new Config().Log(Init.Log.SIMPLE), "本次请求的描述").http().post(httpEntityInfo);
        Assert.assertTrue(response.string().contains("code"));

    }

}
